[
<#assign loopi = 0>
<#list sets as s>
   <#if loopi=0>
		{
		id:"Z${s.d1}",
		text:"${s.d2}",
		code:"${s.d3}",
		children: [
	<#else>
		,{
		id:"Z${s.d1}",
		text:"${s.d2}",
		code:"${s.d3}",
		children: [
		
	</#if> 
	<#assign loop1 = 0>
   <#list s.sets1 as x> 
        <#if loop1=0>
		    {
			id:"Z${x.d1}",
			text:"${x.d2}",
			code:"${x.d3}",
			children: [
		<#else>
		   ,{
			id:"Z${x.d1}",
			text:"${x.d2}",
			code:"${x.d3}",
			children: [
		</#if> 
	    ]}
	    <#assign loop1 = loop1+1>
   </#list>
   ]}
<#assign loopi = loopi+1>
</#list>
]